home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer CD Series 1998 April: Mac OS SDK
/
Dev.CD Apr 98 SDK2.toast
/
Development Kits (Disc 2)
/
ScriptX
/
Code Samples
/
untested
/
tcpip
/
browser
/
bug2.sx
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-05-21
|
353 b
|
23 lines
|
[
TEXT/ttxt
]
--<<<
if not (isdefined tcpstream) do process (new loader) "loadable/web"
function bug0 -> (
local x := new tcpstream host: "198.186.9.22" port: 80
plug x
)
function bug1 -> (
local x := new tcpstream host: "www" port: 80
local t := ((read x) &)
threadyieldto t
threadyieldto t
plug x
)
function domany n f ->
for i in 1 to n do f()
-->>